package com.lxh.libmanager.util;

public class StringUtil {

    /**
     *
     * @author:
     * @return:
     * @time: 2022/9/23 15:34
     * @description: 验证非空验证
     */
    public static boolean isNotEmpty(String... strs){
        for (String str : strs) {
            if (str==null||str.trim().length()==0) {
                return false;
            }
        }
        return true;
    }

    public static int stringToInt(String num){
        try {
            return Integer.valueOf(num);
        } catch (NumberFormatException e) {
//            e.printStackTrace();
        }
        return -1;
    }

}
